import request from '@/utils/request'
import { bb } from '@/utils/request';

//const bb = 'http://127.0.0.1:8080';
//const bb = 'http://182.92.190.174:8081';
//遍历游戏
export function getList(current,limit){
  return request({
    baseURL: bb,
    url: `/system/selectSystem/${current}/${limit}`,
    method: 'post',
  })
}

export function addSystem(systemName){
  return request({
    baseURL: bb,
    url: `/system/addSystem/${systemName}`,
    method: 'get',
  })
}

export function updateSystem(Systems){
  return request({
    baseURL: bb,
    url: `/system/updateSystem`,
    method: 'put',
    data:Systems
  })
}

export function deleteSystem(systemId){
  return request({
    baseURL: bb,
    url: `/system/deleteSystem/${systemId}`,
    method: 'delete',
  })
}

export function deleteSystemAll(all){
  return request({
    baseURL: bb,
    url: `/system/deleteSystemAll`,
    method: 'delete',
    data:all
  })
}

